#ifndef   mid_spi_h_
#define   mid_spi_h_
#include  "hal.h"
#include  "spi.h"

#define   SPICS_LOW               Spi_SetCS(M0P_SPI0,FALSE)
#define   SPICS_HIGH              Spi_SetCS(M0P_SPI0,TRUE)

void Mid_SpiGpioInit(void);
void Mid_SPIInit(void);
uint8_t Mid_SpiRW(M0P_SPI_TypeDef* SPIx, uint8_t u8Data);


#endif
